package cn.silver.module.system.controller;


import cn.silver.framework.mybatis.controller.BaseController;
import cn.silver.module.system.bean.MailBean;
import cn.silver.module.system.domain.SysUserMail;
import cn.silver.module.system.param.MailParam;
import cn.silver.module.system.service.ISysUserMailService;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.annotation.Resource;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * 用户邮箱配置Controller
 *
 * @author hb
 * @date 2022-07-06
 */
@RestController
@RequiredArgsConstructor
@Tag(name = "系统管理-用户管理-用户邮箱配置")
@RequestMapping("/system/user/mail")
public class SysUserMailController extends BaseController<ISysUserMailService, SysUserMail, MailParam, MailBean> {

    @Override
    @Resource
    public void setBaseService(ISysUserMailService baseService) {
        this.setCode("system_user_mail");
        this.setTitle("用户管理-用户邮箱配置");
        this.baseService = baseService;
        this.setPermission("system:user");
    }
}
